<form method="post" action="<?php echo $this->url_edit . @$edit->{$this->{$this->model}->primaryKey}; ?>"  enctype="multipart/form-data" class="form-horizontal">
<div class="row">
<div class="col-12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="glyphicon glyphicon-align-justify"></i>									
			</span>
			<h5><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Thông tin ':'Thêm mới ').@strtolower($this->resource->RES_NAME);?></h5>
		</div>
		
		<div class="widget-content nopadding">
				<?php
					$str_text = '<a href="https://ellislab.com/codeigniter/user-guide/general/routing.html" target="_blank"> Cú pháp đặt link</a>';
				?>
				<?php echo $this->atheme->group_input2('edit[redirect_link_from]', 'Link nguồn', '', 'span6 ', @$edit->redirect_link_from, 'text', '',$str_text); ?>
				<?php echo $this->atheme->group_input2('edit[redirect_link_to]', 'Link đích', '', 'span6 ', @$edit->redirect_link_to, 'text', ''); ?>
				<?php echo $this->atheme->group_select2('edit[redirect_type]','Loại chuyển hướng','','', array('301'=>'301', 'refresh'=>'refresh'),@$edit->redirect_type,'style="min-width: 300px;"'); ?>
				<?php echo $this->atheme->group_select2('edit[redirect_status]','Trạng thái','','', array('1'=>'Chạy', '0'=>'Tắt'),@$edit->redirect_status,''); ?>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small"><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Save':'Add');?></button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
		</div>
	</div>						
</div>
</div>

</form>